<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_OrderModel
 */

class Involved_OrderProductModel extends BaseModel{

    protected $table = 'order_product';

    /**
     * 获取产品ID
     * @param $order_id
     * @return mixed
     * @author alice
     * @date 2016-2-23
     */
    public function GetProductById($order_id)
    {
        return DB::table($this->table)
                ->select('product_id')
                ->where('order_id',$order_id)
                ->get();
    }














}